I unintentionally made .desktop->pid association "win" over
WM_CLASS. Fixing this makes the case of ancillary .desktop file
entry points (e.g. gnome-control-center's various shortcut .desktop
files) correctly show System Settings, and not whatever the shortcut
is.
In the future I'd like to have a way to say "this .desktop file
is a shortcut, ignore me" or something.
https://bugzilla.gnome.org/show_bug.cgi?id=646689
}
}
- result = get_app_from_window_pid (monitor, window);
+ /* Check if the app's WM_CLASS specifies an app; this is
+ * canonical if it does.
+ */
+ result = get_app_from_window_wmclass (window);
if (result != NULL)
return result;
- /* Check if the app's WM_CLASS specifies an app */
- result = get_app_from_window_wmclass (window);
+ result = get_app_from_window_pid (monitor, window);
if (result != NULL)
return result;